package com.chixing.ih.module.task.service;

import com.alipay.api.AlipayApiException;
import com.chixing.ih.module.task.pojo.Order;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

/**
 * 目的:
 *
 * @author ：zcw
 * @version: 1.0  2020/10/13 19:51
 */
public interface IPayService {
    /**
     * 支付宝支付接口
     *
     * @param
     * @return
     * @throws
     */
    void pay(Long orderId, HttpServletResponse response,HttpServletRequest request) throws AlipayApiException,
            IOException;

    /**
     * 支付宝退款接口
     *
     * @param
     * @return
     * @throws
     */
//    void refund(Order order, HttpServletResponse response, HttpSession session) throws IOException,
//    AlipayApiException;
}
